import hashlib


def encode_text(text, salt="b943caa0cb7299a32a0c0bdacf6d1b98"):
    text = text.encode("utf-8")
    salt = salt.encode("utf-8")
    merge = bytearray()
    i = j = f = 0
    while i < len(text) or j < len(salt):
        if i < len(text) and f == 0 or j == len(salt):
            merge.append(text[i])
            i += 1
        else:
            merge.append(salt[j])
            j += 1
        f ^= 1
    sha256_hash = hashlib.sha256()
    sha256_hash.update(merge)
    return sha256_hash.hexdigest()


print(
    ans := encode_text("汪汪特工队"),
    ans == "004766fc958a5a5dc68ecc1ae5ee19a8988e2c52afd52c678c48a3bb567ecb6b",
)
print(
    ans := encode_text("汪汪特工队"),
    ans == "f14b324d526b53d85777fbc4617c39103011dae2a659a2128352eaee8c20fc13",
)
print(
    ans := encode_text("210248951234875614"),
    ans == "2c4fbc4c7a94901a501812cb16b45a931a8f0bb6f9d7397dfdd9504dd792a6af",
)
print(
    ans := encode_text("210248951234875614"),
    ans == "3eaa75ef03556dc610f465eebff6d4eaabb976fa3ff64d63bbb7349644eaef2f",
)
